<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('index');
});

Route::get('welcome', function () {
    return view('welcome');
});



Route::get('event/index/{id}', 'EventController@index');                     //各活动首页
Route::match(['get','post'],'event/create/{id}', 'EventController@create');  //创建活动
Route::match(['get','post'],'event/update/{id}', 'EventController@update');    //修改活动
Route::post('event/show/{id}', 'EventController@show');                      //查询数据


Route::get('picture/index', 'PictureController@index');                        //所有图片列表
Route::match(['get','post'],'picture/create/{id}', 'PictureController@create');//创建一个图片
Route::get('picture/show/{id}', 'PictureController@show');                     //根据区域不同展示相应图片
Route::get('picture/edit/{id}', 'PictureController@edit');                     //修改图片状态
Route::match(['get','post'],'picture/update/{id}', 'PictureController@update');//修改图片超链接
Route::get('picture/destroy/{id}', 'PictureController@destroy');               //删除指定图片


Route::get('usedcar/index', 'UsedcarController@index');                        //所有二手车列表
Route::match(['get','post'],'usedcar/create/{id}', 'UsedcarController@create');//创建添加新二手车
Route::match(['get','post'],'usedcar/update/{id}', 'UsedcarController@update');//修改图片超链接
Route::get('usedcar/destroy/{id}', 'UsedcarController@destroy');               //删除指定图片

// Route::get('usedcar/show/{id}', 'UsedcarController@show');                     //根据区域不同展示相应图片
// Route::get('usedcar/edit/{id}', 'UsedcarController@edit');                     //修改图片状态


Route::get('club/index', 'ClubController@index');                                 //俱乐部活动列表
Route::match(['get','post'],'club/create/{id}', 'ClubController@create');         //创建俱乐部活动
Route::match(['get','post'],'club/update/{id}', 'ClubController@update');         //修改俱乐部活动
Route::get('club/destroy/{id}', 'ClubController@destroy');                        //删除俱乐部活动
Route::get('name/index', 'NameController@index');                                 //俱乐部成员列表
Route::get('join/index', 'JoinController@index');                                 //俱乐部活动参与人员列表


Route::get('part/index', 'PartController@index');                                 //配件列表
Route::match(['get','post'],'part/create', 'PartController@create');              //配件添加
Route::match(['get','post'],'part/update/{id}', 'PartController@update');         //配件修改
Route::get('part/destroy/{id}', 'PartController@destroy');                        //配件删除

Route::get('lbeacon/index','LbeaconController@index');                            //蓝牙车系

Route::get('admin/update','AdminController@update');

Route::get('system/index','SystemController@index');    
